@import '@/styles/mixin.scss';

.hi-global-contioner {
  display: flex;
  flex: 1;
  overflow: hidden;

  &:hover {
    @include scrollBar;
  }

  .hi-global-contioner__left {
    background: #fff;
    display: flex;
    flex-direction: column;
    width: 256px;
    height: 100%;
    overflow: hidden;
    border-right: 1px solid #f0f0f0;

    .header {
      display: flex;
      justify-content: space-between;
      height: 50px;
      line-height: 50px;
      padding: 0 20px;
      border-bottom: 1px solid #f0f0f0;
      h5 {
        font-size: 16px;
      }
    }

    .search-wrap {
      padding: 10px;
    }

    &:hover {
      .content {
        @include scrollBar;
        overflow-x: hidden;
      }
    }

    .content {
      flex: 1;
      overflow: hidden;

      &>* {
        height: 100%;
        border-right: none;
      }
    }
  }

  .hi-global-contioner__right {
    flex: 1;
    overflow: hidden;

    .ant-card-body {
      display: flex;
      flex-direction: column;
      height: 100%;

      .ant-table-wrapper,
      .ant-table,
      .ant-table-container {
        flex: 1;
        overflow: hidden;
      }

      .ant-table-expanded-row-fixed::after {
        border-color: transparent !important;
      }

      table {
        // min-height: 100%;
      }

      .ant-table-container,
      .ant-table-body {
        height: 100%;
      }

      .ant-table {
        border-bottom: 1px solid #f0f0f0;
      }

      .ant-spin-nested-loading,
      .ant-spin-container {
        height: 100% !important;
        max-height: 100% !important;
      }

      .ant-spin-container {
        display: flex;
        flex-direction: column;
      }

      tr td:last-child {
        border-right: none !important;
      }
    }

    .ant-table-body {
      flex: 1;
      height: calc(100% - 47px) !important;
      overflow: auto auto !important;
      border-right: 1px solid #f0f0f0;
    }
  }
}